adTempus API
PreviousUpNext
ICapturedFile::GetFileContents Method

Gets the contents of the file as an array of bytes

C++
HRESULT GetFileContents([out,retval] SAFEARRAY(byte) * fileContents);
C#
GetFileContents([out,retval] SAFEARRAY(byte) fileContents);
Visual Basic
Sub GetFileContents(fileContents As [out,retval] SAFEARRAY(byte))

GetFileContents returns a VARIANT array (variant type VT_ARRAY|VT_UI1) containing the contents of the file. 

Once you have retrieved the contents you should call the ReleaseContents method to free the memory required by the file contents. Otherwise the contents remain in memory until the CapturedFile object is uncached.

adTempus API Reference version 3.0.0.0, revised 10/30/2008